require('6to5/polyfill');
require('setImmediate');

var React = require('react');
var {DefaultRoute, Route, Routes} = require('react-router');

var Home =  require('./Home');
var HelloWorld =  require('./HelloWorld');
var HelloGenerator = require('./HelloGenerator').default;
var HelloComment = require('./comment/HelloComment');

React.render(
    <Routes location="history">
        <Route name="home" path="react.html" handler={ Home }>
            <DefaultRoute handler={ HelloWorld } />
            <Route name="comment" handler={ HelloComment } />
            <Route name="generator" handler={ HelloGenerator } />
        </Route>
    </Routes>
    , document.querySelector('.body'));